#ifndef SVGELLIPSEITEM_H
#define SVGELLIPSEITEM_H

#include "cshape.h"

class SvgEllipseItem : public CShape
{
public:
    SvgEllipseItem( QPointF start, QPointF end, int Width = 1, QColor color = "black", QBrush brush_input = Qt::NoBrush);
    SvgEllipseItem(qreal start_x,qreal start_y, qreal end_x, qreal end_y,int Width = 1, QColor color = "black", QBrush brush_input = Qt::NoBrush);
    void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override;
    QRectF boundingRect() const override;
    QPainterPath shape() const override;
protected:
    void mousePressEvent(QGraphicsSceneMouseEvent* event) override;
    void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override;
    void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override;
};


#endif // SVGELLIPSEITEM_H
